//
//  BaseViewController.m
//  N9Mi
//
//  Created by Sunshine on 2017/12/5.
//  Copyright © 2017年 Sunshine. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

-(void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.translucent = NO;
    
    UIBarButtonItem *backItem =[[UIBarButtonItem alloc]initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil];
    self.navigationItem.backBarButtonItem =backItem;
    
//    self.navigationController.navigationBar.barStyle = UIBaselineAdjustmentNone;
//    //导航栏背景色
//    self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:68 / 255.0 green:188 / 255.0 blue:255/ 255.0 alpha:1];
//    UIBarButtonItem *backItem =[[UIBarButtonItem alloc]initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil];
//    self.navigationItem.backBarButtonItem =backItem;
//    //4.设置导航条内容的颜色
//    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
//    //设置导航栏字体和字号，以及导航栏颜色
//    self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor], NSFontAttributeName:[UIFont systemFontOfSize:17]};
    [IQKeyboardManager sharedManager].shouldResignOnTouchOutside = YES;
    

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
    [[SDImageCache sharedImageCache] setValue:nil forKey:@"memCache"];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
